/**
 * 单位信息维护
 */
import Layout from '@/layout'

const unitInformationMaintenance = {
  path: '/unitInformationMaintenance',
  component: Layout,
  redirect: '/unitInformationMaintenance/unitInformationEdit',
  name: 'unitInformationMaintenance',
  meta: {
    title: '单位信息维护',
    icon: 'el-icon-s-flag',
    roles: ['admin', 'editor'] // you can set roles in root nav
  },
  children: [
    {
      path: 'unitInformationEdit',
      component: () => import('@/views/unitInformationMaintenance/unitInformationEdit'),
      name: 'unitInformationEdit',
      meta: {
        title: '单位信息编辑',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'unitInformationAudit',
      component: () => import('@/views/unitInformationMaintenance/unitInformationAudit'),
      name: 'unitInformationAudit',
      meta: {
        title: '单位信息审核',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'internalOrganizationMaintenance',
      component: () => import('@/views/unitInformationMaintenance/internalOrganizationMaintenance'),
      name: 'internalOrganizationMaintenance',
      meta: {
        title: '内部机构维护',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    },
    {
      path: 'organizationPersonMaintenance',
      component: () => import('@/views/unitInformationMaintenance/organizationPersonMaintenance'),
      name: 'organizationPersonMaintenance',
      meta: {
        title: '机构人员维护',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    }
  ]
}

export default unitInformationMaintenance
